package cn.com.hp.feature.domain.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: hjz
 * @since: 2022/8/29
 * @description:
 */
@Data
public class MenuInfoDTO extends BasePageDTO{

    @ApiModelProperty("菜单名称")
    private String menuName;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("上架时间（始）")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String shelfStartTime;

    @ApiModelProperty("上架时间（止）")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String shelfEndTime;
}
